package com.rrx.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class Administrator {
    private int id;
    private String username;
    private String password;
    private String imageUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date adminTime;
    private int state;
    private String email;

    public Administrator() {}

    public Administrator(int id, String username, String password, String imageUrl, Date registerDate, int state, String email) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.imageUrl = imageUrl;
        this.adminTime = registerDate;
        this.state = state;
        this.email = email;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Date getAdminTime() {
        return adminTime;
    }

    public void setAdminTime(Date registerDate) {
        this.adminTime = registerDate;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
